package com.lzm.ydpt.entity.riding;

import android.os.Parcel;
import android.os.Parcelable;

public class OrderBean implements Parcelable {
    private int state; // 0 待取货 1配送中 2 已完成 3 已取消

    public OrderBean() {
    }

    protected OrderBean(Parcel in) {
        state = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(state);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<OrderBean> CREATOR = new Creator<OrderBean>() {
        @Override
        public OrderBean createFromParcel(Parcel in) {
            return new OrderBean(in);
        }

        @Override
        public OrderBean[] newArray(int size) {
            return new OrderBean[size];
        }
    };

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
}
